import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

import path from "path";

export default defineConfig({
    plugins: [vue()],
    css: {
        /* CSS 预处理器 */
        preprocessorOptions: {
            less: {
                modifyVars: {
                    "primary-color": "#2186FB",
                    // 配置我们定义的less样式变量
                    hack: `true; @import (reference) "${path.resolve("./src/css/variable.less")}";`,
                },
                javascriptEnabled: true,
            },
        },
    },
});
